package com.zrrd.spring_04.service.impl;

import com.zrrd.spring_04.dao.ManagerDao;
import com.zrrd.spring_04.service.ManagerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ManagerServiceImpl implements ManagerService {
    @Resource
    private ManagerDao managerDao;

    @Override
    public void save() {
        System.out.println("新增管理员Service层");
        managerDao.save();
    }

    @Override
    public void remove() {
        System.out.println("删除管理员Service层");
        managerDao.remove();
    }

    @Override
    public void edit() {
        System.out.println("修改管理员Service层");
        managerDao.edit();
    }

    @Override
    public void query() {
        System.out.println("查询管理员Service层");
        managerDao.query();
    }
}